//
//  ViewController.m
//  MVVM
//
//  Created by Apple on 2018/6/5.
//  Copyright © 2018年 TechnologyLtdhuayu. All rights reserved.
//

#import "ViewController.h"
#import "UserModel.h"
@interface ViewController ()
@property (nonatomic,strong) UILabel *userLabel;
@property (nonatomic,strong) UILabel *sexLabel;
@property (nonatomic,strong) UserModel *userViewModel;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    _userLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 100, 100, 100)];
    _userLabel.backgroundColor = [UIColor redColor];
    _userViewModel = [[UserModel alloc]init];
    _userLabel.text =_userViewModel.userName;//显示
    [self.view addSubview:_userLabel];
    
    _sexLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 240, 100, 100)];
    _sexLabel.backgroundColor = [UIColor redColor];
    _userViewModel = [[UserModel alloc]init];
    _sexLabel.text =_userViewModel.userSex;//显示
    [self.view addSubview:_sexLabel];
    ///sssssssssss
    //sssssssssss
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
